package com;

import java.math.BigDecimal;
import java.util.Random;

public class RandomNum {
    public Double randNum() {
        double nextDouble = new Random().nextDouble() * 2;
        double value = new BigDecimal(nextDouble).setScale(2,BigDecimal.ROUND_HALF_DOWN).doubleValue();
        return value;
    }
}
